<template>
  <div class="home">
    <div class="header">welcome to my demo lists...</div>
    <div class="demos">

      <div class="demoitem">
        <router-link to="/bin2dec">
          <div class="item-img">
            <img src="../assets/bin2dec.png" alt="" />
          </div>
          <h3>进制转换器</h3>
        </router-link>
      </div>

            <div class="demoitem">
        <router-link to="/BorderRadiusPreviewer">
          <div class="item-img">
            <img src="../assets/BorderRadiusPreview.png" alt="" />
          </div>
          <h3>BorderRadiusPreviewer</h3>
        </router-link>
      </div>

    </div>
  </div>
</template>

<script setup>
// @ is an alias to /src
// import HelloWorld from '@/components/HelloWorld.vue'
</script>

<style lang="less" scoped>
* {
  margin: 0;
  padding: 0;
}
.home .header {
  width: 100%;
  height: 80px;
  line-height: 80px;
  background-color: var(--primary);
  font-size: 40px;
  font-weight: 500;
  color: var(--surface1);
}
.demos {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: space-around;
  .demoitem {
    width: 220px;
    height: 240px;
    border: 1px solid black;
    box-shadow: 2px 2px 10px rgba(54, 52, 52, 0.5);
    cursor: pointer;
    .item-img {
      width: 180px;
      height: 180px;
      // overflow: hidden;
      margin:0 auto;
      img {
        width: 100%;
        height: 100%;
      }
    }
    h3 {
      font-size: 20px;
    }
  }

  .demoitem:hover {
    transform: translateY(-5px);
    transition: all 0.5s liner;
    box-shadow: 2px 2px 10px rgb(54, 52, 52);
  }
}
</style>